//
//  SeriesViewController.h
//  CheXunWang
//
//  Created by zhu lin on 12/14/11.
//  Copyright 2011 Zhulin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ATMHud.h"
#import "ASIHTTPRequest.h"

typedef enum {
	ZLBackButtonTypeHome = 0,
	ZLBackButtonTypeBrand = 1,
	ZLBackButtonTypeScope = 2
} ZLBackButtonType;

@interface SeriesViewController : UITableViewController <ASIHTTPRequestDelegate, UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate>{
	// views
	ATMHud *hud;
	
	// data
	NSMutableArray *groupedSeriesArray;
	ASIHTTPRequest *serieslistRequest;
	NSMutableDictionary *imageDownloadsInProgress;
	
	NSString *scopeValue;
	ZLBackButtonType backType;
}

@property (nonatomic, retain) NSString *scopeValue;
@property (nonatomic, assign) ZLBackButtonType backType;
@property (nonatomic, retain) ATMHud *hud;
@property (nonatomic, retain) NSMutableArray *groupedSeriesArray;

- (void) getSeriesBySeriesName:(NSString *)seriesName;
- (void) getSeriesByBrandId:(NSString *)brandId;
- (void) getSeriesByScope:(NSString*)scope;
@end
